package com.bjsxt.userCenter.user.service.pojo;

import java.util.Iterator;

public enum AdminEnum
{
	STATUS_DISABLE((byte)0,"禁用"),
	STATUS_ENABLE((byte)1,"启用");
	private byte status;
	private String info;
	
	private AdminEnum(byte status, String info)
	{
		this.status = status;
		this.info = info;
	}
	public byte getStatus()
	{
		return status;
	}
	public void setStatus(byte status)
	{
		this.status = status;
	}
	public String getInfo()
	{
		return info;
	}
	public void setInfo(String info)
	{
		this.info = info;
	}
	
	public static boolean checkEnable(Byte status2)
	{
		AdminEnum adminEnum[] = AdminEnum.values();
		for (AdminEnum adminEnum2 : adminEnum)
		{
			if(adminEnum2.getStatus() == status2 && adminEnum2.getInfo().equalsIgnoreCase("启用"))
			{
				return true;
			}
		}
		return false;
	}
	
}
